package com.neo.impatient.C05_Class.C05_07_mainConstructor

//可以给主构造器一个默认参数
class MainConsT3(val name: String = "",
                 val age: Int = 29) {


}

object MainConsT3 {


  def main(args: Array[String]): Unit = {
    val mainConsT3 = new MainConsT3()
    println(mainConsT3.age, mainConsT3.name)
    val mainConsT31 = new MainConsT3("neo",28)
    println(mainConsT31.age, mainConsT31.name)
  }
}